<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="UTF-8">
		<title>红酒会 - 智能红酒管家</title>
		<link rel="shortcut icon" type="image/x-icon" href="${ctx}/favicon.ico" />
		<link href="http://libs.baidu.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
		<link rel="stylesheet" href="${ctx}/static/styles/admin.css" />
	</head>
<body>
	<c:import url="admin_header.jsp" />

	<div class="container-fluid" style="padding-top:40px;">
		<div class="row-fluid">
			<div class="span2">
				<c:import url="admin_menu.jsp">
					<c:param name="menu">article_check</c:param>
				</c:import>
        	</div><!--/span-->
			<div class="span10">
				<div>
					<ul class="breadcrumb">
	  					<li><a href="${ctx}/admin/article/list">文章管理</a> <span class="divider">/</span></li>
	  					<li class="active">审核文章</li>
					</ul>
				</div>
				<div>
					<h4>${article.title}</h4>
					作者：<a href="#">${article.creatorName}</a>&nbsp;&nbsp;
					发布于：<fmt:formatDate value="${article.createTime}" pattern="yyyy-MM-dd HH:mm"/>
					<c:if test="${not empty article.tags}">
						<div style="padding-top:5px;">
							标签：<c:forEach var="tag" items="${article.tags}">
								<span class="badge badge-important">${tag.name}</span>&nbsp;&nbsp;
							</c:forEach>
						</div>
					</c:if>
					<hr/>
					<div class="article">${article.content}</div>
					<div class="control-group">
				    	<div class="controls">
				    		<a href="${ctx}/admin/article/checkList?status=0" class="btn">&nbsp;&nbsp;&nbsp;返&nbsp;&nbsp;&nbsp;回&nbsp;&nbsp;&nbsp;</a>
				      		<a href="${ctx}/admin/article/update/?id=${article.id}&status=-1&url=redirect:/admin/article/checkList?status=0"
				      			class="btn btn-danger">&nbsp;&nbsp;&nbsp;拒&nbsp;&nbsp;&nbsp;绝&nbsp;&nbsp;&nbsp;</a>
				      		<a href="${ctx}/admin/article/update/?id=${article.id}&status=1&url=redirect:/admin/article/checkList?status=0"
				      			class="btn btn-primary">&nbsp;&nbsp;&nbsp;通&nbsp;&nbsp;&nbsp;过&nbsp;&nbsp;&nbsp;</a>
				    	</div>
				  	</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
</body>
</html>